package scsc.pub.data;

import java.io.Serializable;
import org.apache.commons.lang.builder.ToStringBuilder;


/** 
 *        @hibernate.class
 *         table="TRANSACT"
 *         schema="scsc"
 *         dynamic-update="true"
 *         dynamic-insert="true"
 *     
*/
public class Transact implements Serializable {

    /** identifier field */
    private String transcode;

    /** persistent field */
    private String transname;

    /** full constructor */
    public Transact(String transcode, String transname) {
        this.transcode = transcode;
        this.transname = transname;
    }

    /** default constructor */
    public Transact() {
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="TRANSCODE"
     *         
     */
    public String getTranscode() {
        return this.transcode;
    }

    public void setTranscode(String transcode) {
        this.transcode = transcode;
    }

    /** 
     *            @hibernate.property
     *             column="TRANSNAME"
     *             length="60"
     *             not-null="true"
     *         
     */
    public String getTransname() {
        return this.transname;
    }

    public void setTransname(String transname) {
        this.transname = transname;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("transcode", getTranscode())
            .toString();
    }

}
